package com.xpc.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xpc.mapper.AccountMapper;
import com.xpc.pojo.Account;
import com.xpc.service.IAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Project：UniversityGradeAdministrationSystem
 * Date：2022/5/4
 * Time：22:20
 * Description：TODO
 *
 * @author 南北辰的键盘
 * @version 1.0
 */
@Service
public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> implements IAccountService {

    @Autowired
    private AccountMapper accountMapper;

    @Override
    public Page<Account> getPage(int currentPage, int pageSize) {
        Page page = new Page(currentPage, pageSize);
        accountMapper.selectPage(page,null);
        return page;
    }




}
